<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
  Class: TableData::CoercingRow
  
    &mdash; Documentation by YARD 0.8.7.3
  
</title>

  <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />

  <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />

<script type="text/javascript" charset="utf-8">
  hasFrames = window.top.frames.main ? true : false;
  relpath = '../';
  framesUrl = "../frames.html#!" + escape(window.location.href);
</script>


  <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>

  <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>


  </head>
  <body>
    <div id="header">
      <div id="menu">
  
    <a href="../_index.html">Index (C)</a> &raquo;
    <span class='title'><span class='object_link'><a href="../TableData.html" title="TableData (module)">TableData</a></span></span>
     &raquo; 
    <span class="title">CoercingRow</span>
  

  <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
</div>

      <div id="search">
  
    <a class="full_list_link" id="class_list_link"
        href="../class_list.html">
      Class List
    </a>
  
    <a class="full_list_link" id="method_list_link"
        href="../method_list.html">
      Method List
    </a>
  
    <a class="full_list_link" id="file_list_link"
        href="../file_list.html">
      File List
    </a>
  
</div>
      <div class="clear"></div>
    </div>

    <iframe id="search_frame"></iframe>

    <div id="content"><h1>Class: TableData::CoercingRow
  
  
  
</h1>

<dl class="box">
  
    <dt class="r1">Inherits:</dt>
    <dd class="r1">
      <span class="inheritName"><span class='object_link'><a href="Row.html" title="TableData::Row (class)">Row</a></span></span>
      
        <ul class="fullTree">
          <li>Object</li>
          
            <li class="next"><span class='object_link'><a href="Row.html" title="TableData::Row (class)">Row</a></span></li>
          
            <li class="next">TableData::CoercingRow</li>
          
        </ul>
        <a href="#" class="inheritanceTree">show all</a>
      
      </dd>
    
  
  
    
  
    
  
  
  
    <dt class="r2 last">Defined in:</dt>
    <dd class="r2 last">lib/tabledata/coercing_row.rb</dd>
  
</dl>
<div class="clear"></div>







  <h2>Instance Attribute Summary</h2>
  
  <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Row.html" title="TableData::Row (class)">Row</a></span></h3>
  <p class="inherited"><span class='object_link'><a href="Row.html#data-instance_method" title="TableData::Row#data (method)">#data</a></span>, <span class='object_link'><a href="Row.html#index-instance_method" title="TableData::Row#index (method)">#index</a></span>, <span class='object_link'><a href="Row.html#table-instance_method" title="TableData::Row#table (method)">#table</a></span></p>


  
    <h2>
      Instance Method Summary
      <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
    </h2>

    <ul class="summary">
      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#coerce-instance_method" title="#coerce (instance method)">- (Object) <strong>coerce</strong>(column, value) </a>
    

    
  </span>
  
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'></div></span>
  
</li>

      
        <li class="public ">
  <span class="summary_signature">
    
      <a href="#initialize-instance_method" title="#initialize (instance method)">- (CoercingRow) <strong>initialize</strong>(table, index, data, coercions) </a>
    

    
  </span>
  
  
    <span class="note title constructor">constructor</span>
  
  
  
  
  
  

  
    <span class="summary_desc"><div class='inline'>
<p>A new instance of CoercingRow.</p>
</div></span>
  
</li>

      
    </ul>
  


  
  
  
  
  
  
  
  
  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Row.html" title="TableData::Row (class)">Row</a></span></h3>
  <p class="inherited"><span class='object_link'><a href="Row.html#%5B%5D-instance_method" title="TableData::Row#[] (method)">#[]</a></span>, <span class='object_link'><a href="Row.html#at-instance_method" title="TableData::Row#at (method)">#at</a></span>, <span class='object_link'><a href="Row.html#at_accessor-instance_method" title="TableData::Row#at_accessor (method)">#at_accessor</a></span>, <span class='object_link'><a href="Row.html#at_header-instance_method" title="TableData::Row#at_header (method)">#at_header</a></span>, <span class='object_link'><a href="Row.html#at_index-instance_method" title="TableData::Row#at_index (method)">#at_index</a></span>, <span class='object_link'><a href="Row.html#each-instance_method" title="TableData::Row#each (method)">#each</a></span>, <span class='object_link'><a href="Row.html#inspect-instance_method" title="TableData::Row#inspect (method)">#inspect</a></span>, <span class='object_link'><a href="Row.html#method_missing-instance_method" title="TableData::Row#method_missing (method)">#method_missing</a></span>, <span class='object_link'><a href="Row.html#respond_to_missing%3F-instance_method" title="TableData::Row#respond_to_missing? (method)">#respond_to_missing?</a></span>, <span class='object_link'><a href="Row.html#size-instance_method" title="TableData::Row#size (method)">#size</a></span>, <span class='object_link'><a href="Row.html#slice-instance_method" title="TableData::Row#slice (method)">#slice</a></span>, <span class='object_link'><a href="Row.html#to_a-instance_method" title="TableData::Row#to_a (method)">#to_a</a></span>, <span class='object_link'><a href="Row.html#to_hash-instance_method" title="TableData::Row#to_hash (method)">#to_hash</a></span>, <span class='object_link'><a href="Row.html#values_at-instance_method" title="TableData::Row#values_at (method)">#values_at</a></span></p>

  <div id="constructor_details" class="method_details_list">
  <h2>Constructor Details</h2>
  
    <div class="method_details first">
  <h3 class="signature first" id="initialize-instance_method">
  
    - (<tt><span class='object_link'><a href="" title="TableData::CoercingRow (class)">CoercingRow</a></span></tt>) <strong>initialize</strong>(table, index, data, coercions) 
  

  

  
</h3><div class="docstring">
  <div class="discussion">
    
<p>Returns a new instance of CoercingRow</p>


  </div>
</div>
<div class="tags">
  

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


5
6
7
8</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/tabledata/coercing_row.rb', line 5</span>

<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_table'>table</span><span class='comma'>,</span> <span class='id identifier rubyid_index'>index</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_coercions'>coercions</span><span class='rparen'>)</span>
  <span class='ivar'>@coercions</span>  <span class='op'>=</span> <span class='id identifier rubyid_coercions'>coercions</span>
  <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_table'>table</span><span class='comma'>,</span> <span class='id identifier rubyid_index'>index</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='period'>.</span><span class='id identifier rubyid_with_index'>with_index</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_col'>col</span><span class='op'>|</span> <span class='id identifier rubyid_coerce'>coerce</span><span class='lparen'>(</span><span class='id identifier rubyid_col'>col</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
  
</div>
<div id="method_missing_details" class="method_details_list">
  <h2>Dynamic Method Handling</h2>
  <p class="notice super">
    This class handles dynamic methods through the <tt>method_missing</tt> method
    
      in the class <span class='object_link'><a href="Row.html#method_missing-instance_method" title="TableData::Row#method_missing (method)">TableData::Row</a></span>
    
  </p>
  
</div>


  <div id="instance_method_details" class="method_details_list">
    <h2>Instance Method Details</h2>

    
      <div class="method_details first">
  <h3 class="signature first" id="coerce-instance_method">
  
    - (<tt>Object</tt>) <strong>coerce</strong>(column, value) 
  

  

  
</h3><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


10
11
12
13</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/tabledata/coercing_row.rb', line 10</span>

<span class='kw'>def</span> <span class='id identifier rubyid_coerce'>coerce</span><span class='lparen'>(</span><span class='id identifier rubyid_column'>column</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
  <span class='id identifier rubyid_coercer'>coercer</span> <span class='op'>=</span> <span class='ivar'>@coercions</span><span class='lbracket'>[</span><span class='id identifier rubyid_column'>column</span><span class='rbracket'>]</span>
  <span class='id identifier rubyid_coercer'>coercer</span> <span class='op'>?</span> <span class='id identifier rubyid_coercer'>coercer</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id identifier rubyid_value'>value</span>
<span class='kw'>end</span></pre>
    </td>
  </tr>
</table>
</div>
    
  </div>

</div>

    <div id="footer">
  Generated on Sun Feb 23 13:33:20 2014 by
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
  0.8.7.3 (ruby-2.1.0).
</div>

  </body>
</html>